/**
 * 枚举常量的文件
 */


enum JoystickType {
  FIXED = 0,
  FOLLOW,
}

enum DirectionType {
  FOUR = 4,
  EIGHT = 8,
  ALL = 0,
}

enum SpeedType {
  STOP = 0,
  NORMAL,
  FAST
}

enum JoystickEventType {
  TOUCH_START = "touchStart",
  TOUCH_MOVE = "touchMove",
  TOUCH_END = "touchEnd",
  CHANGE_JOYSTICK_TYPE = "changeJoystickType"
}

enum UIName {
  UIRank  = "UIRank",
  UIOver  = "UIOver",
  UIShop = "UIShop",
  UIGetTool = "UIGetTool",
  UISign = "UISign",
  UIReward = "UIReward",
  UILevel = "UILevel",
  UIUnlockLevel = "UIUnlockLevel",
}


enum StageEvent {
  DrawParabola = "DrawParabola",
  ClearParabola = "ClearParabola",
  CastStosh = "CastStosh",
  RotateRod = "RotateRod",
  LaunchRod = "LaunchRod",
  ResetRod = "ResetRod",
  RefreshShop = "RefreshShop",
  RefreshLevel = "RefreshLevel",
  ChangePlayerAni = "ChangePlayerAni",

}





enum EnemyType {
  fish = 0,
  shark = 1,
  penguin = 2,
  seal = 3,
  duck = 4
}


enum PlayerAniState {
  stosh = "stosh",
  run = "run",
  rod = "rod",

}

const EnemyInfo = [
  {type:0,score:1,range:{minY:50,maxY:350},playerjumprate:0.8,stoshjumprate:0.9},
  {type:1,score:10,range:{minY:100,maxY:300},playerjumprate:0.6,stoshjumprate:0.5},
  {type:2,score:5,range:{minY:100,maxY:300},playerjumprate:0.4,stoshjumprate:0.5},
  {type:3,score:3,range:{minY:100,maxY:300},playerjumprate:0.2,stoshjumprate:0.5},
  {type:4,score:5,range:{minY:300,maxY:300},playerjumprate:0.6,stoshjumprate:0.5},
]



const StageInfo = [
  {id:1,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:10,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
  {id:2,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:20,ground:{type:1,pos:new cc.Vec2(960,325),offset:50}},
  {id:3,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:30,ground:{type:2,pos:new cc.Vec2(860,325),offset:45}},
  {id:4,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:40,ground:{type:3,pos:new cc.Vec2(960,325),offset:60}},
  {id:5,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:50,ground:{type:0,pos:new cc.Vec2(400,300),offset:100}},
  {id:6,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:60,ground:{type:0,pos:new cc.Vec2(900,325),offset:100}},
  {id:7,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:70,ground:{type:0,pos:new cc.Vec2(360,325),offset:100}},
  {id:8,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:80,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
  {id:9,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:90,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
  {id:10,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:100,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
  {id:11,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:200,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
  {id:12,enemys:[{enemyType:EnemyType.fish,num:5},{enemyType:EnemyType.shark,num:1},{enemyType:EnemyType.penguin,num:3},{enemyType:EnemyType.duck,num:10},{enemyType:EnemyType.seal,num:2},{enemyType:EnemyType.seal,num:5}],winscore:300,ground:{type:0,pos:new cc.Vec2(960,325),offset:100}},
]


//畅意模式下的游戏时间 单位 : 秒
const CrazyGameTime = 60;

const StoshInfo = [
  {id : 1 ,name :"青虫鱼饵", price:100},
  {id : 2 ,name :"小虾鱼饵", price:200},
  {id : 3 ,name :"小鱼鱼饵", price:300}
  
]

const RodInfo = [
  {id : 0 ,name :"普通棒", price:0,tip:"无特殊效果",force:1,speed:1},
  {id : 1 ,name :"力量棒", price:1000,tip:"力量Up20%",force:1.2,speed:1},
  {id : 2 ,name :"速度棒", price:2000,tip:"距离Up20%",force:1,speed:1.2},
  {id : 3 ,name :"全能棒", price:3000,tip:"全面Up20%",force:1.2,speed:1.2}
  
]

const SignReward = [3000,500,800,1200,1500,2000,3000]
//世界排行榜假数据
const WorldScore = [9999,9875,9688,9524,9370,9238,9123,9100,9002,9000,
                    8999,8875,8688,8524,8370,8238,8123,8100,8002,8000,
                    7999,7875,7688,7524,7370,7238,7123,7100,7002,7000,
                    6999,6875,6688,6524,6370,6238,6123,6100,6002,6000,
                    5999,5875,5688,5524,5370,5238,5123,5100,5002,5000,
                    4999,4875,4688,4524,4370,4238,4123,4100,4002,4000,
                    3999,3875,3688,3524,3370,3238,3123,3100,3002,3000,
                    2999,2875,2688,2524,2370,2238,2123,2100,2002,2000,
                    1999,1875,1688,1524,1370,1238,1123,1100,1002,1000,
                    999,987,968,952,940,938,923,910,902,900,]



const MapSize = new cc.Vec2(20000,10000)

export default class Constants {
  public static JoystickType = JoystickType;
  public static DirectionType = DirectionType;
  public static SpeedType = SpeedType;
  public static JoystickEventType = JoystickEventType;
  public static UIName = UIName;
  public static MapSize = MapSize;
  public static StoshInfo = StoshInfo;
  public static RodInfo = RodInfo;
  public static SignReward = SignReward;
  public static StageEvent = StageEvent;
  public static StageInfo = StageInfo;
  public static EnemyType = EnemyType;
  public static EnemyInfo = EnemyInfo;
  public static PlayerAniState = PlayerAniState;
  public static WorldScore = WorldScore;
  public static CrazyGameTime = CrazyGameTime;






}
